package com.itjiange;

/**
 * 迭代器模式
 *
 * @author ItJianGe
 * @data 2024/8/26 9:53
 */
public class IteratorMain {
    public static void main(String[] args) {
        // 1. 创建菜单
        AMenus aMenus = new AMenus();
        BMenus bMenus = new BMenus();

        Witter witter = new Witter();
        System.out.println("----------------使用迭代器遍历--------------");
        witter.printAllMenus(aMenus, bMenus);
    }
}